using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;

public class ResourceUI : MonoBehaviour
{
    public static ResourceUI instance;
    public int glassCount;
    public int oreCount;
    public TMP_Text glassCountUI;
    public TMP_Text oreCountUI;

    public void Awake()
    {
        instance = this;
    }

    private void Update() {
        PrintResourceUI();
    }

    public void CostGlass(int cost){
        glassCount -= cost;
    }
    public void CostOre(int cost){
        oreCount -= cost;
    }

    private void PrintResourceUI(){
        glassCountUI.text  = ":" + glassCount;
        oreCountUI.text = ":" + oreCount;
    }
}
